<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <meta name="format-detection" content="telephone=no"/>    
        <title>社文客服管理</title>
        <link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('base_url'); ?>css/easyui.css"/>
        <link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('base_url'); ?>css/icon.css"/>
        <script src="<?php echo $this->config->item('base_url'); ?>js/jquery-1.8.3.min.js"></script>
        <script src="<?php echo $this->config->item('base_url'); ?>js/easyui.min.js"></script>
        <script src="<?php echo $this->config->item('base_url'); ?>js/easyui-lang-cn.js"></script>
        <script src="<?php echo $this->config->item('base_url'); ?>js/framework.js"></script>
        <script src="<?php echo $this->config->item('base_url'); ?>js/pub.js"></script>
    </head>
    <body class="easyui-layout" onload="addMainTab('总览', '<?php echo $this->config->item('base_url'); ?>system/status', '', true);">
        <!--头部-->
        <div data-options="region:'north',border:false" style="height:50px;background:#CEF;padding:10px">
            <div class="easyui-layout" data-options="fit:true" style="background:#CEF;">
                <div data-options="region:'west',border:false" style="width:120px;background:#CEF;">
                    <a href="http://www.shewentm.com/"><img src="http://www.shewentm.com/images/sw_index/sw_new_logo.png" alt="社文科技" title="社文科技" name="shewen_logo" id="shewen_logo" width="100" height="30" /></a>                
                </div>
                <div data-options="region:'center',border:false"  style="background:#CEF;">
                    <div style="text-align:center; font-size:24px">社文客服管理</div>
                </div>
                <div data-options="region:'east',border:false" style="width:200px;height:50px;background:#CEF;">
                    <a href="#">亲爱的 <?php echo $user->username; ?>，<?php echo $data['timeHello']; ?></a>
                    &nbsp;&nbsp;
                    <a href="<?php echo $this->config->item('base_url'); ?>logout">退出</a>
                </div>
            </div>
        </div>
        <!--导航-->
        <div data-options="region:'west',split:true,title:'菜单选项'" style="width:200px">
            <div class="easyui-accordion" data-options="fit:true,border:false">
                <div title="系统控制台" style="padding:10px">
                    <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('总览', '<?php echo $this->config->item('base_url'); ?>system/status', '', true)">状态总览</a></p>
                    <?php if (false && @$permission[1]) {
                        ?>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('站点设置', '<?php echo $this->config->item('base_url'); ?>system/setting', '', true)">站点设置</a></p>
                    <?php } ?>
                    <?php if (@$permission[2]) {
                        ?>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('管理员管理', '<?php echo $this->config->item('base_url'); ?>system/manager', '', true)">管理员管理</a></p>
                    <?php } ?>
                </div>
                <div title="客户记录" style="padding:10px">
                    <?php if (@$permission[4]) {
                        ?>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('咨询记录', '<?php echo $this->config->item('base_url'); ?>visitor/chat', '', true)">咨询记录</a></p>
                    <?php } ?>
                    <?php if (@$permission[3]) {
                        ?>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('区域分布', '<?php echo $this->config->item('base_url'); ?>visitor/region', '', true)">区域分布</a></p>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('时间分布', '<?php echo $this->config->item('base_url'); ?>visitor/time', '', true)">时间分布</a></p>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('热力图', '<?php echo $this->config->item('base_url'); ?>visitor/heatmap', '', true)">访客热力图</a></p>
                    <?php } ?>
                </div>
                <div title="客服管理" style="padding:10px;">
                    <?php if (false && @$permission[6]) {
                        ?>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('考勤记录', '<?php echo $this->config->item('base_url'); ?>service/work', '', true)">考勤记录</a></p>
                    <?php } ?>
                    <?php if (@$permission[5]) {
                        ?>
                        <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('解答记录', '<?php echo $this->config->item('base_url'); ?>service/chat', '', true)">解答记录</a></p>
                    <?php } ?>
                    <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('客服人员管理', '<?php echo $this->config->item('base_url'); ?>service/manage', '', true)">客服人员管理</a></p>
                    <p style="display:true"><a class="easyui-linkbutton" onclick="addMainTab('客服组管理', '<?php echo $this->config->item('base_url'); ?>service/groupmanage', '', true)">客服组管理</a></p>
                </div>
            </div>
        </div>
        <!--底部-->
        <div data-options="region:'south',border:false" style="height:40px;background:#CCF;padding:10px;">
            <div class="easyui-layout" data-options="fit:true" style="background:#CCF;">
                <div data-options="region:'west',border:false" style="width:400px;background:#CCF;" >
                </div>
                <div data-options="region:'center',border:false"  style="background:#CCF;" >
                    <div style="text-align:center; font-size:16px">版权所有&copy;北京社文科技有限公司 2013-<?php echo date('Y'); ?></div>
                </div>                      
                <div data-options="region:'east',border:false" style="width:400px;background:#CCF;"  >
                </div>
            </div>
        </div>
        <!--正文-->
        <div data-options="region:'center'">
            <div class="easyui-tabs" id="main-tab-bar" data-options="fit:true,border:false,plain:true"></div>
        </div>
        <!--弹框-->
        <div id="main_frm_lockdlg" class="easyui-dialog" title="长时间未操作" style="width:150px;height:80px; text-align:center; vertical-align:middle;"   data-options="modal:true,onClose:function(){win_location('<?php echo $this->config->item('base_url'); ?>logout');},closed: true" >  
            <a id="timeout-button" href="<?php echo $this->config->item('base_url'); ?>logout" class="easyui-linkbutton" >重新登录</a>    
        </div>
    </body>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=cF1xYRAAQdFXusSgvzHWyDVYE3NYO36Z"></script>
</html>